package itheima.zuoye.test2;
import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        List<Student> students = new ArrayList<>();

        students.add(new Student("001", "张三", 20, "男", "13800138000", "zhangsan@example.com"));
        students.add(new Student("002", "李四", 21, "女", "13900139000", "lisi@example.com"));
        students.add(new Student("003", "王五", 22, "男", "13700137000", "wangwu@example.com"));

        for (Student student : students) {
            System.out.println(student);
        }
    }
}
